import React, { Suspense } from 'react';
import { useRoutes } from 'react-router-dom';
import routes from './routeConfig'

function RouterView() {
    return (
        <Suspense fallback={<div>Loading...</div>}>
            {
                useRoutes(routes)
            }
        </Suspense>
    );
}

export default RouterView;